package com.example.shop.fgo.utils;

import com.example.shop.fgo.base.YBaseApp;
import com.example.shop.library.util.SharedPrefrencesUtil;

/**
 * Created by Administrator on 2017/2/8.
 * cookie: aa=dataaa ; bb-databb
 */

public class CookieUtil {
    public static void saveCookie(String fuid,String token){
        SharedPrefrencesUtil.saveData(YBaseApp.mContextGlobal,"cks","Cookie","fuid="+fuid+";token="+token);
        saveFuid(fuid);
    }
    public static String getCookie(){
      return   SharedPrefrencesUtil.getData(YBaseApp.mContextGlobal,"cks","Cookie","");
    }
    public static void saveFuid(String fuid){
        SharedPrefrencesUtil.saveData(YBaseApp.mContextGlobal,"cks","fuid",fuid);
    }

    public static  String getFuid(){
        return SharedPrefrencesUtil.getData(YBaseApp.mContextGlobal,"cks","fuid","");

    }

}
